@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal">

            <input type="hidden" id="id" value="">

            <div class="row">
                <div class="col-sm-12" id="itemsArea">
                    <div class="form-group">
                        <label class="col-sm-1 control-label">名称</label>
                        <div class="col-sm-2">
                            <input class="form-control" id="dictName" type="text">
                        </div>
                        <label class="col-sm-1 control-label">编号</label>
                        <div class="col-sm-2">
                            <input class="form-control" id="dictCode" type="text">
                        </div>
                        <label class="col-sm-1 control-label">备注</label>
                        <div class="col-sm-3">
                            <input class="form-control" id="dictRemark" type="text">
                        </div>
                        <div class="col-sm-2">
                            <#button btnCss="info" name="增加" icon="fa-plus" clickFun="DictInfoDlg.addItem()"/>
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>

                </div>
            </div>
            <div class="row btn-group-m-t">
                <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="DictInfoDlg.addSubmit()"/>
                <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="DictInfoDlg.close()"/>
            </div>
        </div>
    </div>

    <script type="text/template" id="itemTemplate">
        <div class="form-group" name="dictItem" id="dictItem">
            <input class=" form-control" type="hidden" name="itemId">
            <div class="col-sm-2">
                <input class=" form-control" type="text" name="itemName" placeholder="名称">
            </div>
            <div class="col-sm-2">
                <input class=" form-control" type="text" name="itemCode" placeholder="编号">
            </div>
            <div class="col-sm-2">
                <input class=" form-control" type="text" name="itemValue" placeholder="值">
            </div>
            <div class="col-sm-2">
                <input class=" form-control" type="text" name="itemNum" placeholder="排序">
            </div>
            <div class="col-sm-2">
                <input class=" form-control" type="text" name="itemRemark" placeholder="备注">
            </div>
            <div class="col-sm-2"><#button btnCss="danger" name="删除" id="cancel" icon="fa-remove"
                clickFun="DictInfoDlg.deleteItem(event)"/>
            </div>
        </div>
    </script>

    <script src="${ctxPath}/static/modular/system/dict/dictInfo.js"></script>
    @}